/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Data;

import java.io.Serializable;

/**
 *
 * @author Cristina
 */
public class Car implements Serializable
{
    private int carId;
    private String number; // car registration number
    private String model;  // car model
    private int seatsNumber; // maximum number of seats
    private int kmNumber; // total km coverd
    private double maintenanceCost;
    private double fuelConsumption; // fuel consumption per 100km

    public Car(){}

    public Car(int carId, String number, String model, int seatsNumber, int kmNumber, double maintenanceCost, double fuelConsumption) {
        this.carId = carId;
        this.number = number;
        this.model = model;
        this.seatsNumber = seatsNumber;
        this.kmNumber = kmNumber;
        this.maintenanceCost = maintenanceCost;
        this.fuelConsumption = fuelConsumption;
    }

    public Car(String number, String model, int seatsNumber, int kmNumber, double maintenanceCost, double fuelConsumption) {
        this.number = number;
        this.model = model;
        this.seatsNumber = seatsNumber;
        this.kmNumber = kmNumber;
        this.maintenanceCost = maintenanceCost;
        this.fuelConsumption = fuelConsumption;
    }

    //Get and set methods:


    public int getCarId() { return carId; }
    public void setCarId(int carId) { this.carId = carId; }

    public String getNumber() { return number; }
    public void setNumber(String number) { this.number = number; }

    public String getModel() { return model; }
    public void setModel(String model) { this.model = model;  }

    public int getSeatsNumber() { return seatsNumber; }
    public void setSeatsNumber(int seatsNumber) { this.seatsNumber = seatsNumber; }

    public int getKmNumber() { return kmNumber; }
    public void setKmNumber(int kmNumber) { this.kmNumber = kmNumber; }

    public double getMaintenanceCost() { return maintenanceCost; }
    public void setMaintenanceCost(double maintenanceCost)
    {
        this.maintenanceCost = maintenanceCost;
    }
   
    public double getFuelConsumption() { return fuelConsumption; }
    public void setFuelConsumption(double fuelConsumption)
    {
        this.fuelConsumption = fuelConsumption;
    }

    




    

}
